package dao.inte;

import dao.cms.UrlAlreadyExistsException;
import domain.cms.CmsPage;

import java.util.List;

public interface CmsPageRepository extends AbstractEntityRepositoryInterface<CmsPage> {


    public List<CmsPage> findByTitle(String title);

    public CmsPage findByUrl(String url);

    public List<CmsPage> findRoots();

    public List<CmsPage> findChildsByParentId(Long parentId);

    public List<CmsPage> getPublishedSections();


    CmsPage save(CmsPage object) throws UrlAlreadyExistsException, Exception;
}
